from urllib import request
import re

response = request.urlopen('file:///D:/pytho/pythonProject1/day02/htnl.html')
html = response.read().decode('utf-8')
result_list = re.findall(
    r'<div class="movie-item-info">.*?<a title=".*?">(.*?)</a>.*?<p class="star">(.*?)</p>.*?</div>', html, re.S)
for each in result_list:
    print("电影名称: " + each[0])
    print("电影主演: " + each[1].strip())